<template>
  <view class="bg-[#F3F4F6] c-pd" v-if="state.list">
    <view class="mt-[12px]">
      <!--      <van-cell-group inset>
        <van-cell title="设备编号" :value="props.equip.equipCode"></van-cell>
        <van-cell title="设备MAC" :value="props.equip.equipMac"></van-cell>
        <van-cell title="安装区域" is-link :value="props.equip.installArea || '未设置'" @click="showDialogTemplate(2)"></van-cell>
        <van-cell title="实际使用人" is-link :value="props.equip.actualUserName" @click="showDialogTemplate(3)" v-if="props.equip.equipType === 11 || props.equip.equipType === 12 || props.equip.equipType === 13"></van-cell>
        <van-cell title="报警时段" is-link :value="props.equip.alarmTimeRange || '无'" @click="showDialogTemplate(4)" v-if="props.equip.equipType === 5"></van-cell>
        <van-cell title="阀门状态" v-if="props.equip.equipType === 4">
          <view v-if="state.valveState === 2"> 无阀门 </view>
          <view v-else>开<van-switch active-color="#ea622c" inactive-color="#07C160" :checked="state.valveState === 1" @change="handleValveChange" />关</view>
        </van-cell>
        <van-cell title="激活日期" :value="props.equip.activeDate"></van-cell>
        <van-cell title="流量截止日期" :value="props.equip.flowEndDate"></van-cell>
      </van-cell-group>-->
    </view>
  </view>
  <view class="w-full" v-else>
    <van-empty description="暂无数据" />
  </view>
</template>

<script setup lang="ts">
import EquipRequest from '@/request/equipRequest';

interface IProps {
  equipId: number;
}

interface IState {
  list: any;
}

const props = defineProps<IProps>();
const state = reactive<IState>({ list: [] });

onLoad(() => {
  state.list = [];
});
</script>
